import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'login',
      component: () => import('../views/Login.vue'),
    },
     
    {
      path: '/main',
      name: 'main',
      component: () => import('../views/Main.vue'),
      children:
      [
          {
      path: '/show',
      name: 'show',
      component: () => import('../views/Show.vue'),
    },
    {
      path: '/role',
      name: 'role',
      component: () => import('../views/RoleShow.vue'),
    },
    {
      path: '/menu',
      name: 'menu',
      component: () => import('../views/Menu.vue'),
    },
    {
      path: '/rolemenu',
      name: 'rolemenu',
      component: () => import('../views/RoleMenu.vue'),
    },
     {
      path: '/application',
      name: 'application',
      component: () => import('../views/Application.vue'),
    },
    {
      path: '/report',
      name: 'report',
      component: () => import('../views/Report.vue'),
    },
    {
      path: '/typ',
      name: 'typ',
      component: () => import('../views/Traceability/TraceabilityShow.vue'),
    },
     {
      path: '/pls',
      name: 'pls',
      component: () => import('../views/Traceability/ParticularsShow.vue'),
    }
    
      ]
    },
  
  ],
})

export default router
